<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello')->allowCrossDomain(['Vary'=>'Origin']);
Route::get('hello2/:name', 'index/hello2')->allowCrossDomain(['Vary'=>'Origin']);





Route::resource('wl/sys/menu','sys_menu_controller')->append(['table'=>'sys_menu'])->allowCrossDomain();

Route::resource('wl/sys/office','system/OfficeResource')->append(['table'=>'sys_office'])->allowCrossDomain();

Route::resource('wl/sys/user','resource_controller')->append(['table'=>'sys_user'])->allowCrossDomain();

Route::resource('wl/sys/dict','resource_controller')->append(['table'=>'sys_dict'])->allowCrossDomain();

Route::resource('wl/sys/role','resource_controller')->append(['table'=>'sys_role'])->allowCrossDomain();


Route::resource('wl1/sys/role','resource_controller')->append(['table'=>'sys_role'])->allowCrossDomain(['Vary'=>'Origin']);